package com.wss.day07.loginException;

public class Test2 {
    public static void main(String[] args) {
        try {
            LoginService.login("admin", "123456");
            LoginService.login("", "123456");
            LoginService.login("user", "wrongpassword");
        } catch (LoginException e) {
            System.out.println("登录失败: " + e.getMessage());
        }
    }
}
